package com.sgb.kjwl.model.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 工程材料详情中公司相关信息
 *
 * @author Administrator
 */
public class MaterialCompanyEntity implements Serializable {
    @SerializedName("id")
    private String id;
    @SerializedName("business")
    private String business;
    @SerializedName("companyName")
    private String companyName;
    @SerializedName("companyAddress")
    private String companyAddress;

    @SerializedName("address")
    private String address;

    @SerializedName("concat")
    private String concat;

    @SerializedName("phone")
    private String phone;

    @SerializedName("companyNo")
    private String companyNo;

    @SerializedName("companyType")
    private String companyType;

    @SerializedName("registeredCapital")
    private String registeredCapital;

    @SerializedName("establishmentDate")
    private String establishmentDate;

    @SerializedName("authTime")
    private String authTime;

    @SerializedName("introduction")
    private String introduction;


    @SerializedName("certificatesList")
    private ArrayList<String> certificatesList;

    @SerializedName("attr2")
    private String attr2;

    private String companyLogo;
    @SerializedName("legalRepresentative")
    private String legalRepresentative;

    @SerializedName("supplyAbility")
    private String supplyAbility;

    @SerializedName("supplyScope")
    private String supplyScope;

    @SerializedName("fixedNumber")
    private String fixedNumber;

    private String imAccount;

    private List<GoodsListBean> goodsList;

    /***
     * //0非自营 1自营
     */
    @SerializedName("selfSupportTag")
    private String selfSupportTag;

    public String getSelfSupportTag() {
        return selfSupportTag;
    }

    public void setSelfSupportTag(String selfSupportTag) {
        this.selfSupportTag = selfSupportTag;
    }

    public String getLegalRepresentative() {
        return legalRepresentative;
    }

    public void setLegalRepresentative(String legalRepresentative) {
        this.legalRepresentative = legalRepresentative;
    }

    public String getAttr2() {
        return attr2;
    }

    public void setAttr2(String attr2) {
        this.attr2 = attr2;
    }

    public ArrayList<String> getCertificatesList() {
        return certificatesList;
    }

    public void setCertificatesList(ArrayList<String> certificatesList) {
        this.certificatesList = certificatesList;
    }

    public String getFixedNumber() {
        return fixedNumber;
    }

    public void setFixedNumber(String fixedNumber) {
        this.fixedNumber = fixedNumber;
    }

    public String getImAccount() {
        return imAccount;
    }

    public void setImAccount(String imAccount) {
        this.imAccount = imAccount;
    }

    public void setGoodsList(List<GoodsListBean> goodsList) {
        this.goodsList = goodsList;
    }

    public String getAuthTime() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        long lt = new Long(authTime);
        Date date = new Date(lt);
        return simpleDateFormat.format(date);
    }

    public void setAuthTime(String authTime) {
        this.authTime = authTime;
    }

    public String getBusiness() {
        return business;
    }

    public void setBusiness(String business) {
        this.business = business;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getConcat() {
        return concat;
    }

    public void setConcat(String concat) {
        this.concat = concat;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getCompanyType() {
        return companyType;
    }

    public void setCompanyType(String companyType) {
        this.companyType = companyType;
    }

    public String getRegisteredCapital() {
        return registeredCapital;
    }

    public void setRegisteredCapital(String registeredCapital) {
        this.registeredCapital = registeredCapital;
    }

    public String getEstablishmentDate() {
        return establishmentDate;
    }

    public void setEstablishmentDate(String establishmentDate) {
        this.establishmentDate = establishmentDate;
    }

    public String getSupplyAbility() {
        return supplyAbility;
    }

    public void setSupplyAbility(String supplyAbility) {
        this.supplyAbility = supplyAbility;
    }

    public String getSupplyScope() {
        return supplyScope;
    }

    public void setSupplyScope(String supplyScope) {
        this.supplyScope = supplyScope;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIntroduction() {
        return introduction == null ? "" : introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public List<GoodsListBean> getGoodsList() {
        return goodsList;
    }

    public String getCompanyLogo() {
        return companyLogo;
    }

    public void setCompanyLogo(String companyLogo) {
        this.companyLogo = companyLogo;
    }

    public class GoodsListBean {
        /**
         * itemId : 商品id
         * imageUrl : https://shigongbang.oss-cn-hangzhou.aliyuncs.com/ab245b21e9124ab5aa1e1981270ca9d193056?x-oss-process=image%2Fresize%2Cm_fixed%2Ch_260
         * title : 名称
         */

        private String itemId;
        private String imageUrl;
        private String title;
        private String type; // 0商品 1商砼
        private String skuId;

        public String getItemId() {
            return itemId;
        }

        public void setItemId(String itemId) {
            this.itemId = itemId;
        }

        public String getImageUrl() {
            return imageUrl;
        }

        public void setImageUrl(String imageUrl) {
            this.imageUrl = imageUrl;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getSkuId() {
            return skuId;
        }

        public void setSkuId(String skuId) {
            this.skuId = skuId;
        }
    }

}
